package com.dale.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dale.common.dto.BlogDto;
import com.dale.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author  ：MarkerHub
 * @since 2020-05-25
 */
public interface BlogService extends IService<Blog> {

    public Long getMaxId();

    public IPage<BlogDto> selectAllBlogs(Page<BlogDto> page);

    public BlogDto getBlogDtoById(Long id);

    List<BlogDto> getMostLikeTodayBlog();


    public IPage<BlogDto> searchBlog(Page<BlogDto> page,String searchContent);

}
